bin_SCRIPTS = tipc-trace
CLEANFILES = $(bin_SCRIPTS)
EXTRA_DIST = tipc-trace.py

tipc-trace: tipc-trace.py
if TIPC_TRACE_EXE
	$(PYTHON) -m PyInstaller --onefile --noconfirm $(srcdir)/tipc-trace.py
	cp $(srcdir)/dist/tipc-trace $(srcdir)/
else
	cp $(srcdir)/tipc-trace.py $(srcdir)/tipc-trace
endif

clean-local:
	-rm -rf $(srcdir)/tipc-trace.spec
	-rm -rf $(srcdir)/build
	-rm -rf $(srcdir)/dist
